package com.acme.bankapp.domine.bank;

public abstract class AbstractAccount implements Account {

	private int id;
	private double balance;

	public AbstractAccount(final int id, final double amount) {
        this.id = id;
		balance = amount;
	}

    public int getId() {
        return id;
    }

    public double getBalance() {
		return balance;
	}

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public int deposit(final double amount) {
        balance += amount;
        return 0;
    }

	public abstract int withdraw(final double amount);

}
